home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / jzbigltr.arc / JZBIGLTR.C < prev    next >
Text File  |  1986-04-22  |  2KB  |  45 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │jzbigltr.c                                     │
  4. │Purpose print a large character 8 * 8 chars on the screen at a given         │
  5. │cursor position.                                 │
  6. │Usage:                                      │
  7. │jzbigltr('J',0,0,'█');                                                      │
  8. │                            000████0         │
  9. │This is the internal representation of the letter 'J'  0000██00             │
  10. │with the exception of the char '█' instead of a 0.     0000██00             │
  11. │Keep this representation in mind while perusing the    0000██00         │
  12. │code below. -Jaz                    ██00██00         │
  13. │                            ██00██00         │
  14. │                            0████000         │
  15. │                            00000000         │
  16. │                                         │
  17. │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950              │
  18. └────────────────────────────────────────────────────────────────────────────┘
  19. */
  20.  
  21. jzbigltr(fchr , frow , fcol , fch)
  22. char fchr;
  23. int frow,fcol;
  24. unsigned char fch;
  25. {
  26.          /* point to the character table memory in rom */
  27.   unsigned char far *wtable = (char far *) 0xF000FA6E;
  28.   char wchar;
  29.   int wrow,wcol;
  30.  
  31.   wtable += (fchr * 8);             /* 8 bytes for each character */
  32.  
  33.   for (wrow = 0 ; wrow < 8 ; wrow ++) {     /* loop through chars in table */
  34.     wchar = *(wtable+wrow);            /* point to next character */
  35.     for (wcol = 7 ; wcol >= 0 ; wcol --) {  /* loop through 8 bits    */
  36.       if (wchar & 1) {
  37.     jzloccur(frow+wrow,fcol+wcol);
  38.     printf("%c",fch);
  39.       }
  40.       wchar >>= 1;
  41.     }
  42.   }
  43. }
  44.  
  45.